//
//  StoreConfigTableViewCell.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/4/18.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit
typealias servicesTurnBlock = () -> Void
class StoreConfigTableViewCell: UITableViewCell {

    var turnBlock: servicesTurnBlock?
    func turnStatusBlock(_ block: @escaping servicesTurnBlock) {
        turnBlock = block
    }
    
    @IBOutlet var centerView: UIView!
    @IBOutlet var servicesContentLabel: UILabel!
    @IBOutlet var serviceHeaderLabel: UILabel!
    
    
    @IBOutlet var serviceTurnBtn: UIButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.centerView.roundCorner(radius: 5)
    }
    
    
    
    @IBAction func serviceTurnBtnPress(_ sender: UIButton) {
        if turnBlock != nil {
            self.turnBlock!()
        }
    }
    
    

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
}
